<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>💗计科2班女生们💗</title>
		<link rel="stylesheet" type="text/css" href="index.css"/>
		<embed src="./Yellow.mp3" hidden="true" autostart="true" loop="true">
	</head>
	<body>
		<h1 style="color: #FF88C2; margin-top: 50px; text-align: center;">💗计科2班女生们 女生节快乐！💗</h1>
		<h3 style="color: #FF88C2;  text-align: center; opacity: 0.3;">💗建议横屏观看💗</h3>
		<div id='test1'>
		</div>
		<!-- <button onclick="pause()">暂停/继续</button> -->
	</body>
	<script src="666.js" type="text/javascript" charset="utf-8"></script>
	<script src="index.js" type="text/javascript" charset="utf-8"></script>
	<script>
		//通过类名获取元素（通用版） 
		document.getElementsByClassName=function(className)
		{
			var children = document.getElementsByTagName('*') || document.all;		
			var elements=new Array();
			for(var i=0;i<children.length;i++)
			{
				var child=children[i];
				var classNames=child.className.split(' ');
				for(var j=0;j<classNames.length;j++)
				{
					if(className==classNames[j])
					{
						elements.push(child);
						break;
					}
				}
			}
			return elements;
		}

		var flag = 0;
		function pause() {
			if(flag == 0){
				var item = document.getElementsByClassName('msg');
				for(var key in item){
					item[key].setAttribute("class", "bullet-default-animation-stop bullet msg");
				}
				flag = 1;
			}else {
				var item = document.getElementsByClassName('msg');
				for(var key in item){
					item[key].setAttribute("class", "bullet-default-animation bullet msg");
				}
			}
		
		}
	</script>
</html>
